import {promiseRequest } from "../../../utils/index";
const app = getApp();
Page({
data: {
  acthelpusers: [],
  actId:''
},
onLoad(options) {
  //活动id
  this.data.actId = options.actId;
  let receiveId = options.receiveId;
  //根据receiveId查询用户助力信息
  this.gethelpusers(receiveId);
},
onShow(){
},
//根据receiveId查询用户助力信息
gethelpusers(receiveId) {
  let requestObj = {
    url: '/wxa/acthelpuser/queryhelpusers',
    method: 'post',
    dataobj: { receiveId: receiveId },
  };
  promiseRequest(requestObj).then((res) => {
    if (res.code == 200) {
      let acthelpusers = res.data.data;
      this.setData({
        acthelpusers: acthelpusers
      })
    }
  }).catch((errMsg) => {
  });
},
//查看当前活动的获奖名单
rewardinfo(){
  wx.navigateTo({
    url: '../rewardinfo/rewardinfo?actId=' + this.data.actId
  })
}
})